import request from '@/utils/request'

// 查询报考科类信息列表
export function listExamSubject(query) {
  return request({
    url: '/chengkao/examSubject/list',
    method: 'get',
    params: query
  })
}

// 查询报考科类信息详细
export function getExamSubject(id) {
  return request({
    url: '/chengkao/examSubject/' + id,
    method: 'get'
  })
}

// 新增报考科类信息
export function addExamSubject(data) {
  return request({
    url: '/chengkao/examSubject',
    method: 'post',
    data: data
  })
}

// 修改报考科类信息
export function updateExamSubject(data) {
  return request({
    url: '/chengkao/examSubject',
    method: 'put',
    data: data
  })
}

// 删除报考科类信息
export function delExamSubject(id) {
  return request({
    url: '/chengkao/examSubject/' + id,
    method: 'delete'
  })
}
